
#---------------------------------------------------------------------------
# user's config
#---------------------------------------------------------------------------
#TARGET_TOOLS_PREFIX := 

#base common flags(both c and c++)
DEFAULT_COMMON_FLAGS := -O2 -fstack-protector-all -D_GNU_SOURCE 


#process version information
VER_DEFINE_MAK := $(TOPDIR)/version.mak

ifeq ($(VER_DEFINE_MAK), $(wildcard $(VER_DEFINE_MAK)))
include $(VER_DEFINE_MAK)
VER_INFO   := $(VER_INFO)"Company:  $(VER_COMPANY)\n"
VER_INFO   := $(VER_INFO)"Project:  $(VER_PROJECT)\n"
VER_INFO   := $(VER_INFO)"Target:   $(VER_TARGET)\n"
VER_INFO   := $(VER_INFO)"Ver:      $(VER_CODE)\n"
VER_INFO   := $(VER_INFO)"Friendly: $(VER_FRIENDLY)\n"

VER_INFO := "\"$(VER_INFO)\""

DEFAULT_COMMON_FLAGS += -DVER_INFO="$(VER_INFO)" 
endif


DEFAULT_CFLAGS := -std=c99 -Wall 

